package com.kalvan.log.logback.appender;

import ch.qos.logback.core.rolling.RollingFileAppender;

/**
 * 自定义滚动输出appender,预留扩展
 * @author chenliang
 *
 * @param <E>
 */
public class ExtRollingFileAppender<E> extends RollingFileAppender<E> {

	// @Override
	// protected void append(E eventObject) {

//		super.append(eventObject);
//
//		if (CatExtValidator.getInstance().isDisableLogback()) return;
//
//	       boolean isTraceMode = Cat.getManager().isTraceMode();
//
//	       LoggingEvent event = null;
//	       if (eventObject instanceof LoggingEvent) {
//	           event = (LoggingEvent) eventObject;
//	       }
//	       if (event != null) {
//	           Level level = event.getLevel();
//	           if (level.isGreaterOrEqual(Level.ERROR)) {
//	               logError(event);
//	           } else if (isTraceMode) {
//	               logTrace(event);
//	           }
//	       }
//	   }
}